<?php
include("../core.php5/DB/ORM.class.php");
include("../core.php5/DB/DataBase.class.php");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<?php 
$q="SELECT idnews,title,contains,firstname,lastname FROM news n, users u WHERE n.idusers=u.idusers AND idnews=".$_GET['id'];
ORM::Load($rs,$q);
//print_r($rs);
?>
</head>

<body>
<h1><?php echo $rs->title;?></h1>
Publicado por: <?= $rs->firstname." ".$rs->lastname ?>
<br>
<?php echo htmlspecialchars_decode(str_replace("../","",$rs->contains)); ?>
</body>
</html>